package com.myjava.thread;

/**
 * @auther: tao
 * @date: 2018/9/21 10:54
 * @description:
 */
class MyThread3 implements Runnable { //实现Runnable接口
    @Override
    public void run() {
        for (int i = 0; i < 3; i++) {
            //取得当前线程的名称
            System.out.println(Thread.currentThread().getName() + "运行, i=" + i);
        }
    }
}